package com.order.hit.crossover.platform.common.dao;


import com.order.hit.crossover.platform.common.bean.Store;
import com.order.hit.crossover.platform.common.bean.Store_Value;
import lombok.ToString;

@ToString
public class StoreValueDao
{
    //  主键ID
    private Long ID;
    //  所属门店ID
    private String store_id;
    //  顾客满意度权重
    private int customer_satisfy_weight;
    //  利润权重
    private int profit_weight;
    //  营业额权重
    private int sale_weight;
    //  销售量权重
    private int sales_volume_weight;

    public StoreValueDao()
    {
    }

    public StoreValueDao(String store_id, int customer_satisfy_weight, int profit_weight, int sale_weight, int sales_volume_weight)
    {
        this.store_id = store_id;
        this.customer_satisfy_weight = customer_satisfy_weight;
        this.profit_weight = profit_weight;
        this.sale_weight = sale_weight;
        this.sales_volume_weight = sales_volume_weight;
    }

    public Long getID()
    {
        return ID;
    }

    public void setID(Long ID)
    {
        this.ID = ID;
    }

    public String getStore_id()
    {
        return store_id;
    }

    public void setStore_id(String store_id)
    {
        this.store_id = store_id;
    }

    public int getCustomer_satisfy_weight()
    {
        return customer_satisfy_weight;
    }

    public void setCustomer_satisfy_weight(int customer_satisfy_weight)
    {
        this.customer_satisfy_weight = customer_satisfy_weight;
    }

    public int getProfit_weight()
    {
        return profit_weight;
    }

    public void setProfit_weight(int profit_weight)
    {
        this.profit_weight = profit_weight;
    }

    public int getSale_weight()
    {
        return sale_weight;
    }

    public void setSale_weight(int sale_weight)
    {
        this.sale_weight = sale_weight;
    }

    public int getSales_volume_weight()
    {
        return sales_volume_weight;
    }

    public void setSales_volume_weight(int sales_volume_weight)
    {
        this.sales_volume_weight = sales_volume_weight;
    }

    public static Store_Value getStoreValue(StoreValueDao valueDao) {
        Store_Value storeValue = new Store_Value();

        Store store = new Store();
        store.setStoreId(valueDao.getStore_id());
        storeValue.setStore(store);
        storeValue.setCustomer_satisfy_weight(valueDao.getCustomer_satisfy_weight());
        storeValue.setProfit_weight(valueDao.getProfit_weight());
        storeValue.setSale_weight(valueDao.getSale_weight());
        storeValue.setSales_volume_weight(valueDao.getSales_volume_weight());

        return storeValue;
    }

}
